﻿using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Domain.Interface
{
	/// <summary>
	/// 羊只采购
	/// </summary>
	public interface IPurchaseFormModelRepository
	{
		/// <summary>
		/// 获取采购列表
		/// </summary>
		/// <returns></returns>
		Task<IQueryable<Purchaseformmodel>> GetPurchaseForms();
		/// <summary>
		/// 获取供应商列表
		/// </summary>
		/// <returns></returns>
		Task<IQueryable<Vendormodel>> GetVendormodel();
		/// <summary>
		/// 获取栋舍列表
		/// </summary>
		/// <returns></returns>
		Task<IQueryable<Ridgepole>> GetRidgepole();
		/// <summary>
		/// 获取栏位列表
		/// </summary>
		/// <returns></returns>
		Task<IQueryable<Columnmanagement>> GetColumnManagement(int columnManagementId);
		/// <summary>
		/// 羊只采购添加
		/// </summary>
		/// <param name="entity"></param>
		/// <returns></returns>
	 	Task<int> AddPurchaseForms(List<Purchaseformmodel> entity);
		/// <summary>
		/// 羊只采购删除
		/// </summary>
		/// <param name="loginId"></param>
		/// <param name="ids"></param>
		/// <returns></returns>
		Task<int> DelPurchaseForms(string loginName, params int[] ids);
		/// <summary>
		/// 羊只转舍添加
		/// </summary>
		/// <param name="entity"></param>
		/// <returns></returns>
		Task<int> AddPurchaseFormModel(List<Sheeprescission> entity);
		/// <summary>
		/// 反填羊只采购
		/// </summary>
		/// <param name="purchaseFormId"></param>
		/// <returns></returns>
		Task<Purchaseformmodel> Purchaseformmodel(int purchaseFormId);
		/// <summary>
		/// 修改养只采购
		/// </summary>
		/// <param name="entity"></param>
		/// <returns></returns>
		Task<int> UpdatePurchaseformmodel(Purchaseformmodel entity);
	}
}
